flask: build policy in different locations
authorWei Liu <wei.liu2@citrix.com>
Fri, 28 Oct 2016 15:17:17 +0000 (16:17 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 4 Nov 2016 14:08:10 +0000 (14:08 +0000)
commitc47237a3d9e64abab6827d5f461d395ad0dc8ba2
tree4381ba8584722b6c68a9c76de327bd7cd4880eef
parenta0e98991b0407527b3d2ce1a6eeeb095e1fbf4a7
flask: build policy in different locations

The flask policy can be build twice -- one for hypervisor and one for
tools.

Before this patch, everything is built inside tools/flask/policy
directory.  It is possible to have a race to write to the same output
file when running parallel builds.

Prepend output file names with FLASK_BUILD_DIR. Hypervisor and tools
build will set that variable to different directories, so that we can
be safe from races.

Adjust other bits of the build system as needed.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
.gitignore
tools/flask/policy/Makefile
tools/flask/policy/Makefile.common
xen/xsm/flask/Makefile